<?php
include('../functions/db.php');

$id_video = mres(($_POST['url']));
$komentar = mres(($_POST['komentar']));
$username = mres(($_POST['username']));
//$komentar = htmlentities($komentar);

insertVideoComment($id_video, $komentar, $username);

$returnUrl=mres(($_GET['redirectUrl']));

header('Location: ../?page=' . $returnUrl . '&videoid='. $id_video);


?>
